package com.design.duty_chain;

public class Main {
    public static void main(String[] args) {
        UserRegisterHandler userRegisterHandler = new UserRegisterHandler();
        VIPUserRegisterHandler vipUserRegisterHandler = new VIPUserRegisterHandler();
        userRegisterHandler.setNextHandler(vipUserRegisterHandler);

        userRegisterHandler.handlerMessage(2,"zhang2");
        userRegisterHandler.handlerMessage(1,"zhang1");
    }
}
